package jaux.tank.bean.entity.system;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.fasterxml.jackson.annotation.JsonIgnore;

import jodd.json.meta.JSON;

/**
 * 工作沟通附件
 * @author dong
 *
 */
@Entity(name = "t_sys_attachment")
@Table(name="t_sys_attachment")
public class Attachment extends BaseAttachment {

	
	/**
	 * 文件内容
	 */
	@Lob
	@Basic(fetch = FetchType.LAZY)
	@Column(name = "file_content", columnDefinition = "mediumblob",nullable=true)
	@JsonIgnore
	@JSON(include = false)
	private byte[] fileContent;

	public byte[] getFileContent() {
		return fileContent;
	}

	public void setFileContent(byte[] fileContent) {
		this.fileContent = fileContent;
	}

	
}
